<template>
    <div>{{ name.name }}</div>
    <div>{{ nc }}</div>
</template>
  
<script lang='ts'>
import { useRoute } from "vue-router"; //引入路由组件
import { onMounted, ref } from "vue";
import axios from "axios";
export default {
    setup() {
        const nc = ref("");
        onMounted(() => {
            // axios.get("/api/getUserInfo").then((res) => {
            //     console.log(res);
            //     nc.value = res.data.menusList[0].title;
            //     console.log(nc.value);
            // });
        });
        const $route = useRoute();
        const name = $route.query;
        return {
            name,
            nc,
        };
    },
};
</script>
<style scoped>

</style>
  

<style lang="scss" scoped>

</style>